home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / Installer / DeveloperInterfaces / CIncludes / ActionHandlerHeader.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-25  |  35.7 KB  |  812 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ActionHandlerHeader.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kevin Aitken
  7.  
  8.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <14>    12/21/93    KBA        Added kMenuEventActID to enable the Installer and Action Handler
  13.                                     to coexist with menu selections.
  14.         <13>     12/2/93    WAB        Changed the LoggerProgress Action Strings so that they are
  15.                                     easier to read. I also updated the parameter lists to reflect
  16.                                     the changes that Kevin made for the MakeFSSpec callback routine.
  17.         <12>    11/28/93    KBA        Changed RsrcMerge back to ResMerge.
  18.         <11>    11/16/93    rdm        Changed all of the Res to Rsrc.
  19.         <10>    10/27/93    KBA        Added new progress actions. A bit wordy, but we can clean it up
  20.                                     later.
  21.          <9>    10/25/93    KBA        Added new Action defines.
  22.          <8>     8/10/93    KBA        Added more actions.
  23.          <7>     7/19/93    KBA        Changing RegisterAction to RegisterScriptAction.
  24.          <6>     7/13/93    KBA        Added RegisterAction callback interface for sending actions from
  25.                                     code resources, and now include Types.h.
  26.          <5>     6/21/93    KBA        Added fCallBackProcPtr field to ActionHandlerPB struct.
  27.          <4>     4/30/93    KBA        Added a resultPtr field to the ActionHandlerPB.
  28.          <3>     4/23/93    KBA        Added Action Handler definitions for evaluating rules clauses
  29.                                     and some progress items.
  30.          <2>     4/11/93    KBA        Added another DebuggerAction identifier (kStdEventActID).
  31.          <1>      4/1/93    KBA        first checked in
  32.  
  33. */
  34.  
  35.  
  36. #ifndef __ActionHandlerHeader__
  37. #define __ActionHandlerHeader__
  38.  
  39. // —— Action Classes & Identifiers
  40.  
  41. /*==================================================================================================*/
  42. /*=================================== Script Action Class ==========================================*/
  43. /*==================================================================================================*/
  44. #define    kScriptAction                    5000    
  45. #define kPackageNotFoundActStr            "Script Error:  The package with ID=^0 could not be found."
  46. #define    kPackageNotFoundActID            5001    /*    p0 = Package ID
  47.                                                     p1 =
  48.                                                     p2 =
  49.                                                     p3 =
  50.                                                     r  = */
  51. #define kAtomNotFoundInPackageActStr    "Script Error:  The atom of type '^1' with ID=^0 could not be found in the script."
  52. #define    kAtomNotFoundInPackageActID        5002    /*    p0 = Atom ID
  53.                                                     p1 = Atom Type (RsrcType)
  54.                                                     p2 =
  55.                                                     p3 =
  56.                                                     r  = */
  57. #define kFrameworkNotFoundActStr        "Script Error:  The framework ID=^0 could not be found in the script."
  58. #define    kFrameworkNotFoundActID            5003    /*    p0 = Framework ID
  59.                                                     p1 =
  60.                                                     p2 =
  61.                                                     p3 =
  62.                                                     r  = */
  63. #define kRuleNotFoundActStr                "Script Error:  The rule ID=^0 could not be found."
  64. #define    kRuleNotFoundActID                5004    /*    p0 = Rule ID
  65.                                                     p1 =
  66.                                                     p2 =
  67.                                                     p3 =
  68.                                                     r  = */
  69. #define kFileSpecNotFoundActStr            "Script Error:  File Spec ID=^0 could not be found."
  70. #define    kFileSpecNotFoundActID            5005    /*    p0 = File Spec ID
  71.                                                     p1 =
  72.                                                     p2 =
  73.                                                     p3 =
  74.                                                     r  = */
  75. #define kFileSpecIsBadActStr            "Script Error:  File spec ID=^0 is corrupted, most likely the path name."
  76. #define    kFileSpecIsBadActID                5006    /*    p0 = 
  77.                                                     p1 = 
  78.                                                     p2 = 
  79.                                                     p3 =
  80.                                                     r  = */
  81. #define kCouldNotOpenScriptActStr        "Script Error:  The script '^0' could not be opened.  Error ^1."
  82. #define    kCouldNotOpenScriptActID        5007    /*    p0 = ScriptName (Str255*)
  83.                                                     p1 = OSErr
  84.                                                     p2 =
  85.                                                     p3 =
  86.                                                     r  = */
  87. #define kFileSpecIDIsBadActStr            "Script Error:  File spec ID=^0 cannot have this ID number (ID=-32767 is reserved, and ID=0 can only be used for source file specs of atoms that are not copying)."
  88. #define    kFileSpecIDIsBadActID            5008    /*    p0 = File Spec ID
  89.                                                     p1 = 
  90.                                                     p2 = 
  91.                                                     p3 =
  92.                                                     r  = */
  93. #define kAtomIsBadActStr                "Script Error:  Atom of type '^1' and ID=^0 is bad."
  94. #define    kAtomIDIsBadActID                5009    /*    p0 = Atom ID
  95.                                                     p1 = Atom Type (OSType)
  96.                                                     p2 = 
  97.                                                     p3 =
  98.                                                     r  = */
  99. #define kNotEnoughMemoryToReadActStr    "Memory Error:  Ran out of Installer memory while loading script.  Please set the Installer's partition larger."
  100. #define    kNotEnoughMemoryToReadActID        5010    /*    p0 = 
  101.                                                     p1 = 
  102.                                                     p2 = 
  103.                                                     p3 =
  104.                                                     r  = */
  105. #define kSubHeapToSmallActStr             "Script Error:  The script's sub-heap is too small.  Please set the value in the 'insz' resource higher."
  106. #define    kSubHeapToSmallActID            5011    /*    p0 = 
  107.                                                     p1 = 
  108.                                                     p2 = 
  109.                                                     p3 =
  110.                                                     r  = */
  111. #define kFileSpecNotFndWithRefActStr    "Script Error:  File Spec ID=^0 could not be found.  Referenced from '^1' ID=^2."
  112. #define    kFileSpecNotFndWithRefActID        5012    /*    p0 = File Spec ID
  113.                                                     p1 = Reference Type (RsrcType)
  114.                                                     p2 = Reference ID
  115.                                                     p3 =
  116.                                                     r  = */
  117. #define kVersCompareNotFoundActStr        "Script Error:  The Version Compare resource ('invc') ID=^0 could not be found in the script."
  118. #define    kVersCompareNotFoundActID        5013    /*    p0 = 'invc' resource ID
  119.                                                     p1 =
  120.                                                     p2 =
  121.                                                     p3 =
  122.                                                     r  = */
  123. #define kSearchProcNotFoundActStr        "Script Error:  The Search Procedure resource ('insp') ID=^0 could not be found in the script."
  124. #define    kSearchProcNotFoundActID        5014    /*    p0 = 'insp' resource ID
  125.                                                     p1 =
  126.                                                     p2 =
  127.                                                     p3 =
  128.                                                     r  = */
  129. #define kRuleFunctionNotFoundActStr        "Script Error:  The Rule Function resource ('inrf') ID=^0 could not be found in the script."
  130. #define    kRuleFunctionNotFoundActID        5015    /*    p0 = 'inrf' resource ID
  131.                                                     p1 =
  132.                                                     p2 =
  133.                                                     p3 =
  134.                                                     r  = */
  135.  
  136. /*==================================================================================================*/
  137. /*====================================== Rule Action Class =========================================*/
  138. /*==================================================================================================*/
  139. #define    kRemapActionResultToCancel        1
  140. #define    kRemapActionResultToError        -1
  141. #define    kRemapActionResultToTRUE        1
  142. #define    kRemapActionResultToFALSE        -1
  143. #define    kDontRemapActionResult            0
  144.  
  145.  
  146. #define    kFireRulesAction                5100
  147. #define kFrameworkActStr                "Rule Action:  Framework ID=^0, index ^1 is about to be fired."
  148. #define    kFrameworkActID                    5101    /*    p0 = Framework ID
  149.                                                     p1 = Framework Index
  150.                                                     p2 = 
  151.                                                     p3 =
  152.                                                     r  = */
  153.                                                 
  154. #define kRuleResultActStr                "Rule Action:  Rule ID=^0 returned ^1."
  155. #define    kRuleResultActID                5102    /*    p0 = Rule ID
  156.                                                     p1 = Result (TRUE or FALSE)
  157.                                                     p2 = 
  158.                                                     p3 =
  159.                                                     r  = New Result (TRUE or FALSE) */
  160.                                                 
  161. #define kRuleClauseResultActStr            "Rule Action:  Rule Clause index ^1 of rule ID=^0 returned ^2."
  162. #define    kRuleClauseResultActID            5103    /*    p0 = Rule ID
  163.                                                     p1 = Rule Clause Index
  164.                                                     p2 = Result (TRUE or FALSE)
  165.                                                     p3 =
  166.                                                     r  = New Result (TRUE or FALSE)*/
  167.  
  168.  
  169. /*==================================================================================================*/
  170. /*===================================== Target Action Class ========================================*/
  171. /*==================================================================================================*/
  172. #define    kTargetAction                    5200
  173. #define kTgtFileNotFoundActStr            "Runtime Error:  Target file '^1' was not found (Target File Spec. ID=^0)."        // NOT USED
  174. #define    kTgtFileNotFoundActID            5201    /*    p0 = Target File Spec ID
  175.                                                     p1 = File Name (Str255*)
  176.                                                     p2 = Volume Name (Str255*)
  177.                                                     p3 =
  178.                                                     r  = */
  179. #define kTgtFileLockedActStr            "Runtime Error:  File '^1' is locked (Target File Spec. ID=^0)."                // NOT USED
  180. #define    kTgtFileLockedActID                5202    /*    p0 = Target File Spec ID
  181.                                                     p1 = File Name (Str255*)
  182.                                                     p2 = 
  183.                                                     p3 =
  184.                                                     r  = */
  185. #define kTgtErrForFileAtomActStr         "Runtime Error:  Problems accessing/writing target file '^1'. Error# ^2. (Target File Spec. ID=^0)."
  186. #define    kTgtErrForFileAtomActID            5203    /*    p0 = Target File Spec ID
  187.                                                     p1 = File Name (Str255*)
  188.                                                     p2 = OSErr
  189.                                                     p3 = Atom ID
  190.                                                     r  = */
  191. #define kTgtErrForRsrcAtomActStr        "Runtime Error:  Problems accessing/writing target resource, type '^1' ID=^2. Error# ^3. (Target File Spec. ID=^0)."
  192. #define    kTgtErrForRsrcAtomActID            5204    /*    p0 = Target File Spec ID
  193.                                                     p1 = Rsrc Type
  194.                                                     p2 = Rsrc ID
  195.                                                     p3 = OSErr
  196.                                                     r  = */
  197. #define kTgtErrForFontAtomActStr        "Runtime Error:  Problems accessing/writing target font ^1. Error# ^2. (Target File Spec. ID=^0)."
  198. #define    kTgtErrForFontAtomActID            5205    /*    p0 = Target File Spec ID
  199.                                                     p1 = Font Name (Str255*)
  200.                                                     p2 = OSErr
  201.                                                     p3 = Atom ID
  202.                                                     r  = */
  203. #define kTgtMatchesSrcErrActStr            "Runtime Error:  The target file “^1” on the volume “^2” matches a source file. (Target File Spec. ID=^0)."
  204. #define    kTgtMatchesSrcErrActID            5206    /*    p0 = Target File Spec ID
  205.                                                     p1 = File Name (Str255*)
  206.                                                     p2 = Source Volume Name (Str255*)
  207.                                                     p3 = 
  208.                                                     r  = */
  209. #define kTgtErrForFolderAtomActStr        "Runtime Error:  Problems accessing/writing target folder “^1”. Error# ^2. (Folder Atom ID=^0)."
  210. #define    kTgtErrForFolderAtomActID        5207    /*    p0 = Folder Atom ID
  211.                                                     p1 = File Name
  212.                                                     p2 = OSErr
  213.                                                     p3 = 
  214.                                                     r  = */
  215. #define kTgtErrForResMergeAtomActStr    "Runtime Error:  Problems accessing/writing target file “^1”. Error# ^2. (ResMerge Atom ID=^0)."
  216. #define    kTgtErrForResMergeAtomActID    5208    /*    p0 = ResMerge Atom ID
  217.                                                     p1 = File Name
  218.                                                     p2 = OSErr
  219.                                                     p3 = 
  220.                                                     r  = */
  221.  
  222.  
  223. /*==================================================================================================*/
  224. /*===================================== Source Action Class ========================================*/
  225. /*==================================================================================================*/
  226. #define    kSourceAction                    5300
  227. #define kSrcFileNotFoundActStr            "Runtime Error:  Source File '^1' was not found on the volume '^2'. (Source File Spec. ID=^0)."
  228. #define    kSrcFileNotFoundActID            5301    /*    p0 = Source File Spec ID
  229.                                                     p1 = File Name (Str255*)
  230.                                                     p2 = Volume Name (Str255*)
  231.                                                     p3 =
  232.                                                     r  = */
  233. #define kSrcErrForFileAtomActStr         "Runtime Error:  Problems reading source file '^1'. Error# ^2. (Source File Spec. ID=^0)."
  234. #define    kSrcErrForFileAtomActID            5302    /*    p0 = Source File Spec ID
  235.                                                     p1 = File Name (Str255*)
  236.                                                     p2 = OSErr
  237.                                                     p3 =
  238.                                                     r  = */
  239. #define kSrcErrForRsrcAtomActStr        "Runtime Error:  Problems reading source resource, type '^1' ID=^2. Error# ^3. (Source File Spec. ID=^0)."
  240. #define    kSrcErrForRsrcAtomActID            5303    /*    p0 = Source File Spec ID
  241.                                                     p1 = Rsrc Type
  242.                                                     p2 = 
  243.                                                     p3 = OSErr
  244.                                                     r  = */
  245. #define kSrcErrForFontAtomActStr        "Runtime Error:  Problems reading source font “^1”. Error# ^2. (Source File Spec. ID=^0)."
  246. #define    kSrcErrForFontAtomActID            5304    /*    p0 = Source File Spec ID
  247.                                                     p1 = Font Name
  248.                                                     p2 = OSErr
  249.                                                     p3 = 
  250.                                                     r  = */
  251. #define kSrcErrForFolderAtomActStr        "Runtime Error:  Problems reading source file “^1”. Error# ^2. (Folder Atom ID=^0)."
  252. #define    kSrcErrForFolderAtomActID        5305    /*    p0 = Folder Atom ID
  253.                                                     p1 = File Name
  254.                                                     p2 = OSErr
  255.                                                     p3 = 
  256.                                                     r  = */
  257. #define kSrcErrForResMergeAtomActStr    "Runtime Error:  Problems reading source file “^1”. Error# ^2. (ResMerge Atom ID=^0)."
  258. #define    kSrcErrForResMergeAtomActID    5306    /*    p0 = ResMerge Atom ID
  259.                                                     p1 = File Name
  260.                                                     p2 = OSErr
  261.                                                     p3 = 
  262.                                                     r  = */
  263.  
  264.  
  265. /*==================================================================================================*/
  266. /*===================================== Extender Action Class ======================================*/
  267. /*==================================================================================================*/
  268. #define    kExtenderAction                    5400
  269. #define kExtCodeRsrcNotFoundActStr        "Script Error:  Code resource type '^1' ID=^2 was not found for the Atom Extender ID=^0."
  270. #define    kExtCodeRsrcNotFoundActID        5401    /*    p0 = Atom Extender ID
  271.                                                     p1 = Code Rsrc Type
  272.                                                     p2 = Code Rsrc ID
  273.                                                     p3 = 
  274.                                                     r  = */
  275. #define kExtenderRsrcNotFoundActStr        "Script Error:  Atom Extender ID=^0 was not found."
  276. #define    kExtenderRsrcNotFoundActID        5402    /*    p0 = Atom Extender ID
  277.                                                     p1 =
  278.                                                     p2 = 
  279.                                                     p3 =
  280.                                                     r  = */
  281. #define kCallBackNotAvailableActStr        "Runtime Error:  Call back routine, dispatcher number ^0, can not be called now from extender ID=^1."
  282. #define    kCallBackNotAvailableActID        5403    /*    p0 = Atom Extender ID
  283.                                                     p1 = Routine Dispatch Number
  284.                                                     p2 = 
  285.                                                     p3 =
  286.                                                     r  = */
  287. #define kExtenderResultActStr            "Runtime Error:  Atom Extender ID=^0 returned error number ^1."
  288. #define    kExtenderResultActID            5404    /*    p0 = Atom Extender ID
  289.                                                     p1 = Result (OSErr if != 0)
  290.                                                     p2 = 
  291.                                                     p3 =
  292.                                                     r  = */
  293. #define kA5NotSetCorrectlyActStr        "Runtime Error:  Atom Extender ID=^0 called an Installer routine without setting A5 properly."
  294. #define    kA5NotSetCorrectlyActID            5405    /*    p0 = Extender ID
  295.                                                     p1 = 
  296.                                                     p2 = 
  297.                                                     p3 =
  298.                                                     r  = */
  299. #define kTgtSetupProcNotFoundActStr        "Script Error:  Preference setup code resource, type '^1' ID=^0, was not found in the script."
  300. #define    kTgtSetupProcNotFoundActID        5406    /*    p0 = Setup Code Rsrc ID
  301.                                                     p1 = Setup Code Rsrc Type
  302.                                                     p2 = 
  303.                                                     p3 =
  304.                                                     r  = */
  305. #define kVersCodeRsrcNotFoundActStr        "Script Error:  Version code resource, type '^1' ID=^0, was not found in the script."
  306. #define    kVersCodeRsrcNotFoundActID        5407    /*    p0 = Version Code Rsrc ID
  307.                                                     p1 = Version Rsrc Type
  308.                                                     p2 = 
  309.                                                     p3 =
  310.                                                     r  = */
  311. #define kActionAtomCodeRsrcNFActStr        "Script Error:  Action Atom code resource, type '^1' ID=^0, was not found in the script."
  312. #define    kActionAtomCodeRsrcNFActID        5408    /*    p0 = Action Atom Code Rsrc ID
  313.                                                     p1 = Action Atom Rsrc Type
  314.                                                     p2 = 
  315.                                                     p3 =
  316.                                                     r  = */
  317. #define kSearchProcCodeRsrcNFActStr        "Script Error:  Search Proc code resource, type '^1' ID=^0, was not found in the script."
  318. #define    kSearchProcCodeRsrcNFActID        5409    /*    p0 = Search Proc Code Rsrc ID
  319.                                                     p1 = Search Proc Rsrc Type
  320.                                                     p2 = 
  321.                                                     p3 =
  322.                                                     r  = */
  323. #define kSearchProcBadFileActStr        "Runtime Warning:  Skipped found file “^1” returned from Search Proc ID=^0."
  324. #define    kSearchProcBadFileActID            5410    /*    p0 = Search Proc Rsrc ID
  325.                                                     p1 = File Name
  326.                                                     p2 = 
  327.                                                     p3 =
  328.                                                     r  = */
  329. #define kRuleFuncCodeRsrcNFActStr        "Script Error:  Rule Function code resource, type '^1' ID=^0, was not found in the script."
  330. #define    kRuleFuncCodeRsrcNFActID        5411    /*    p0 = Rule Function Code Rsrc ID
  331.                                                     p1 = Rule Function Rsrc Type
  332.                                                     p2 = 
  333.                                                     p3 =
  334.                                                     r  = */
  335. #define kLowModuleSetupMemoryActStr        "Runtime Warning:  Please increase Installer parition.  Could not allocate all requested memory of ^2 for code resource, type '^1' ID=^0."
  336. #define    kLowModuleSetupMemoryActID        5412    /*    p0 = Code Rsrc ID
  337.                                                     p1 = Rsrc Type
  338.                                                     p2 = Requested Memory
  339.                                                     p3 =
  340.                                                     r  = */
  341. #define kNoModuleSetupMemoryActStr        "Runtime Error:  Could not allocate any requested memory of ^2 for code resource, type '^1' ID=^0."
  342. #define    kNoModuleSetupMemoryActID        5413    /*    p0 = Code Rsrc ID
  343.                                                     p1 = Rsrc Type
  344.                                                     p2 = Requested Memory
  345.                                                     p3 =
  346.                                                     r  = */
  347.     
  348. /*==================================================================================================*/
  349. /*===================================== Memory Action Class ========================================*/
  350. /*==================================================================================================*/
  351. #define    kMemoryAction                    5500
  352. #define    kFreeMemoryActID                5501
  353. #define    kOutOfMemoryActID                5502
  354.  
  355. /*==================================================================================================*/
  356. /*==================================== Debugging Action Class ======================================*/
  357. /*==================================================================================================*/
  358. #define    kDebuggingAction                5600
  359. #define kInitializationActStr            "Initializing External Installer Debugger…"
  360. #define    kInitializationActID            5601    /*    p0 =
  361.                                                     p1 =
  362.                                                     p2 = 
  363.                                                     p3 =
  364.                                                     r  = OSErr */
  365. #define kCloseActStr                    "Closing External Installer Debugger…"
  366. #define    kCloseActID                        5602    /*    p0 =
  367.                                                     p1 =
  368.                                                     p2 = 
  369.                                                     p3 =
  370.                                                     r  = OSErr */
  371. #define kStdEventActStr                    ""
  372. #define    kStdEventActID                    5603    /*    p0 = Pointer to Installer's EventRecord (you can change it, but be nice)
  373.                                                     p1 =
  374.                                                     p2 = 
  375.                                                     p3 =
  376.                                                     r  =  */
  377.  
  378. #define kGenericDebugActStr                "^0^1^2^3"
  379. #define    kGenericDebugActID                5604    /*    p0 = Any string
  380.                                                     p1 = Any string
  381.                                                     p2 = Any string
  382.                                                     p3 = Any string
  383.                                                     r  =  */
  384.                                                     
  385. #define kMenuEventActStr                "Menu ID ^0, index ^1."
  386. #define    kMenuEventActID                    5605    /*    p0 = Menu ID 
  387.                                                     p1 = Item Index
  388.                                                     p2 = 
  389.                                                     p3 = 
  390.                                                     r  =  */
  391.                                                     
  392.  
  393. /*==================================================================================================*/
  394. /*===================================== Progress Action Class ======================================*/
  395. /*==================================================================================================*/
  396. #define    kProgressAction                    5700
  397. #define kClickedInstallActStr            "Progress:  Beginning installation."
  398. #define    kClickedInstallActID            5701    /*    p0 =
  399.                                                     p1 =
  400.                                                     p2 = 
  401.                                                     p3 =
  402.                                                     r  = */
  403. #define kClickedRemoveActStr            "Progress:  Beginning removal."
  404. #define    kClickedRemoveActID                5702    /*    p0 =
  405.                                                     p1 =
  406.                                                     p2 = 
  407.                                                     p3 =
  408.                                                     r  = */
  409. #define kInstallationResultActStr        "Progress:  Installation ended with the result code #^0."
  410. #define    kInstallationResultActID        5703    /*    p0 = OSErr
  411.                                                     p1 =
  412.                                                     p2 = 
  413.                                                     p3 =
  414.                                                     r  =  */
  415. #define kRemovalResultActStr            "Progress:  Removal ended with the result code #^0."
  416. #define    kRemovalResultActID                5704    /*    p0 = OSErr
  417.                                                     p1 =
  418.                                                     p2 = 
  419.                                                     p3 =
  420.                                                     r  =  */
  421. #define kActionAtomResultActStr            "Progress:  Action Atom ID= ^0 (format 1) returned result ^1 from a ^2 message."
  422. #define    kActionAtomResultActID            5705    /*    p0 = Action Atom ID
  423.                                                     p1 = result (1=cancel, 0=continue, -1=fatalError)
  424.                                                     p2 = stage (0=before, 1=after, 2=cleanUpCancel)
  425.                                                     p3 =
  426.                                                     r  = New Result (1=cancel, 0=continue, -1=fatalError) */
  427.  
  428.  
  429. /*==================================================================================================*/
  430. /*======================================= File Progress Actions ====================================*/
  431. /*==================================================================================================*/
  432. #define    kFileProgressAction                5800
  433.  
  434.                                                     
  435. /*==========File COPY action items================*/
  436. #define kFileCopiedStr                    "FILE will be copied “^1” to “^2”. (infa#=^0)."
  437. #define    kFileCopiedID                    5801    /*    p0 =    File Atom ID
  438.                                                     p1 =    File Spec ID
  439.                                                     p2 =     Volume Name (Str255)
  440.                                                     p3 =    
  441.                                                     r  = */
  442.                                                     
  443. #define kFileNotCopiedStr                "FILE will NOT be copied “^1”, to the disk “^2”. (infa#=^0)"
  444. #define    kFileNotCopiedID                5802    /*    p0 =    File Atom ID
  445.                                                     p1 =    File Spec ID
  446.                                                     p2 =     Volume Name (Str255)
  447.                                                     p3 =    
  448.                                                     r  = */
  449.                                                 
  450. #define kFileNotCopiedNewerLeftStr        "FILE will NOT be copied “^1”, to the disk “^2”, because the target file is newer.  (infa#=^0)."
  451. #define    kFileNotCopiedNewerLeftID        5803    /*    p0 =    File Atom ID
  452.                                                     p1 =    File Spec ID
  453.                                                     p2 =     Volume Name (Str255)
  454.                                                     p3 =    
  455.                                                     r  = */
  456.                                                 
  457. #define kFileNotCopiedLockedStr            "FILE will NOT be copied “^1”, to the disk “^2”, because the target file was locked.  (infa#=^0)."
  458. #define    kFileNotCopiedLockedID            5804    /*    p0 =    File Atom ID
  459.                                                     p1 =    File Spec ID
  460.                                                     p2 =     Volume Name (Str255)
  461.                                                     p3 =    
  462.                                                     r  = */
  463.                                                     
  464. /*==========File UPDATE action items================*/
  465. #define kFileUpdatedStr                    "FILE will be updated “^1”, on the disk “^2”.  (infa#=^0)."
  466. #define    kFileUpdatedID                    5805    /*    p0 =    File Atom ID
  467.                                                     p1 =    File Spec ID
  468.                                                     p2 =     Volume Name (Str255)
  469.                                                     p3 =    
  470.                                                     r  = */
  471.                                                     
  472. #define kFileNotUpdatedKeptExistStr        "FILE will NOT be updated “^1”, on the disk “^2”, because the Installer is keeping the existing file. (infa#=^0)."
  473. #define    kFileNotUpdatedKeptExistID        5806    /*    p0 =    File Atom ID
  474.                                                     p1 =    File Spec ID
  475.                                                     p2 =     Volume Name (Str255)
  476.                                                     p3 =    
  477.                                                     r  = */
  478.                                                                                                         
  479. #define kFileNotUpdatedNotExistStr        "FILE will NOT be updated “^1”, on the disk “^2”, because the target file does not exist. (infa#=^0)."
  480. #define    kFileNotUpdatedNotExistID        5807    /*    p0 =    File Atom ID
  481.                                                     p1 =    File Spec ID
  482.                                                     p2 =     Volume Name (Str255)
  483.                                                     p3 =    
  484.                                                     r  = */
  485.  
  486.                                                     
  487. /*==========File REMOVE action items================*/
  488. #define kFileRemovedStr                    "FILE will be removed “^1”, from the disk “^2”. (infa#=^0)."
  489. #define    kFileRemovedID                    5808    /*    p0 =    File Atom ID
  490.                                                     p1 =    File Spec ID
  491.                                                     p2 =     Volume name (Str255)
  492.                                                     p3 =    
  493.                                                     r  = */
  494.                                                     
  495. #define kFileNotRemovedStr                "FILE will NOT be removed “^1”, from the disk “^2”. (infa#=^0)."
  496. #define    kFileNotRemovedID                5809    /*    p0 =    File Atom ID
  497.                                                     p1 =    File Spec ID
  498.                                                     p2 =     Volume name (Str255)
  499.                                                     p3 =    
  500.                                                     r  = */
  501.                                                     
  502. #define kFileNotRemovedNoExistStr        "FILE will NOT be removed “^1”, from the disk “^2”, because it did not exist. (infa#=^0)."
  503. #define    kFileNotRemovedNoExistID        5810    /*    p0 =    File Atom ID
  504.                                                     p1 =    File Spec ID
  505.                                                     p2 =     Volume name (Str255)
  506.                                                     p3 =    
  507.                                                     r  = */
  508.                                                     
  509. #define kFileNotRemovedLockedStr        "FILE will NOT be removed “^1”, from the disk “^2”, because it is locked. (infa#=^0)."
  510. #define    kFileNotRemovedLockedID            5811    /*    p0 =    File Atom ID
  511.                                                     p1 =    File Spec ID
  512.                                                     p2 =     Volume name (Str255)
  513.                                                     p3 =    
  514.                                                     r  = */
  515.                                                     
  516. /*==========Miscellaneous action items================*/
  517. #define kFileSetLockedStr                "The file “^1” will be locked on the disk “^2”. (infa#=^0)."
  518. #define    kFileSetLockedID                5812    /*    p0 =    File Atom ID
  519.                                                     p1 =    File Spec ID
  520.                                                     p2 =     Volume name (Str255)
  521.                                                     p3 =    
  522.                                                     r  = */
  523.                                                     
  524.  
  525. /*==================================================================================================*/
  526. /*===================================== Resource Progress Actions ==================================*/
  527. /*==================================================================================================*/
  528. #define    kRsrcProgressAction                5900
  529.  
  530. /*==========Resource COPY action items================*/
  531.  
  532. #define kRsrcCopiedStr                    "RSRC will be copied (Type “^1”) into “^2” on the disk “^3”.  (inra#=^0)."
  533. #define    kRsrcCopiedID                    5901    /*    p0 =    Rsrc Atom ID
  534.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  535.                                                     p2 =     File Spec ID
  536.                                                     p3 =    Volume Name (Str255)
  537.                                                     r  = */
  538.                                                     
  539. #define kRsrcNotCopiedStr                "RSRC will NOT be copied (Type “^1”), into the file “^2” on the disk “^3”.  (inra#=^0)."
  540. #define    kRsrcNotCopiedID                5902    /*    p0 =    Rsrc Atom ID
  541.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  542.                                                     p2 =     File Spec ID
  543.                                                     p3 =    Volume Name (Str255)
  544.                                                     r  = */
  545.                                                     
  546. #define kRsrcNotCopiedNewerLeftStr        "RSRC will NOT be copied (Type “^1”), into the file “^2”, on the disk “^3”, because the target resource is newer.  (inra#=^0)."
  547. #define    kRsrcNotCopiedNewerLeftID        5903    /*    p0 =    Rsrc Atom ID
  548.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  549.                                                     p2 =     File Spec ID
  550.                                                     p3 =    Volume Name (Str255)
  551.                                                     r  = */
  552.                                                     
  553. #define kRsrcNotCopiedNotTargetStr        "RSRC will NOT be copied (Type “^1”), because the target file “^2” needs to exist on the disk “^3”.  (inra#=^0)."
  554. #define    kRsrcNotCopiedNotTargetID        5904    /*    p0 =    Rsrc Atom ID
  555.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  556.                                                     p2 =     File Spec ID
  557.                                                     p3 =    Volume Name (Str255)
  558.                                                     r  = */
  559.                                                 
  560. #define kRsrcNotCopiedProtectedStr        "RSRC will NOT be copied (Type “^1”), into the file “^2”, because the target resource was protected on the disk “^3”.  (inra#=^0)."
  561. #define    kRsrcNotCopiedProtectedID        5905    /*    p0 =    Rsrc Atom ID
  562.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  563.                                                     p2 =     File Spec ID
  564.                                                     p3 =    Volume Name (Str255)
  565.                                                     r  = */
  566.                                                 
  567.                                                 
  568. /*==========Resource UPDATE action items================*/
  569. #define kRsrcUpdatedStr                    "RSRC will be updated (Type “^1”) in the file “^2” on the disk “^3”.  (inra#=^0)."
  570. #define    kRsrcUpdatedID                    5906    /*    p0 =    Rsrc Atom ID
  571.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  572.                                                     p2 =     File Spec ID
  573.                                                     p3 =    Volume Name (Str255)
  574.                                                     r  = */
  575.                                                     
  576. #define kRsrcNotUpdatedKeptExistStr        "RSRC will NOT be updated (Type “^1”), in the file “^2”, because the Installer is keeping the existing resource on the disk “^3”.  (inra#=^0)."
  577. #define    kRsrcNotUpdatedKeptExistID        5907    /*    p0 =    Rsrc Atom ID
  578.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  579.                                                     p2 =     File Spec ID
  580.                                                     p3 =    Volume Name (Str255)
  581.                                                     r  = */
  582.                                                     
  583. #define kRsrcNotUpdatedLockedStr        "RSRC will NOT be updated (Type “^1”), because the target file “^2” contains a resource that is locked on the disk “^3”.  (inra#=^0)."
  584. #define    kRsrcNotUpdatedLockedID            5908    /*    p0 =    Rsrc Atom ID
  585.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  586.                                                     p2 =     File Spec ID
  587.                                                     p3 =    Volume Name (Str255)
  588.                                                     r  = */
  589.                                                     
  590. #define kRsrcNotUpdatedNotExistStr        "RSRC will NOT be updated (Type “^1”), in the file “^2”, because it didn't exist on the disk “^3”.  (inra#=^0)."
  591. #define    kRsrcNotUpdatedNotExistID        5909    /*    p0 =    Rsrc Atom ID
  592.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  593.                                                     p2 =     File Spec ID
  594.                                                     p3 =    Volume Name (Str255)
  595.                                                     r  = */
  596.                                                     
  597. #define kRsrcNotUpdatedProtectedStr        "RSRC will NOT be updated (Type “^1”), because the target resource was locked in the file “^2” on the disk “^3”.  (inra#=^0)."
  598. #define    kRsrcNotUpdatedProtectedID        5910    /*    p0 =    Rsrc Atom ID
  599.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  600.                                                     p2 =     File Spec ID
  601.                                                     p3 =    Volume Name (Str255)
  602.                                                     r  = */
  603.                                                     
  604.                                                     
  605. /*==========Resource REMOVE action items================*/
  606.  
  607. #define kRsrcRemovedStr                    "RSRC will be removed (Type “^1”) from the file “^2” on the disk “^3”.  (inra#=^0)."
  608. #define    kRsrcRemovedID                    5911    /*    p0 =    Rsrc Atom ID
  609.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  610.                                                     p2 =     File Spec ID
  611.                                                     p3 =    Volume Name (Str255)
  612.                                                     r  = */
  613.                                                     
  614. #define kRsrcNotRemovedStr                "RSRC will NOT be removed (Type “^1”), from the file “^2” on the disk “^3”.  (inra#=^0)."
  615. #define    kRsrcNotRemovedID                5912    /*    p0 =    Rsrc Atom ID
  616.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  617.                                                     p2 =     File Spec ID
  618.                                                     p3 =    Volume Name (Str255)
  619.                                                     r  = */
  620.                                                     
  621. #define kRsrcNotRemovedNoExistStr        "RSRC will NOT be removed (Type “^1”), from the file “^2”, because it doesn't exist on the disk “^3”.  (inra#=^0)."
  622. #define    kRsrcNotRemovedNoExistID        5913    /*    p0 =    Rsrc Atom ID
  623.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  624.                                                     p2 =     File Spec ID
  625.                                                     p3 =    Volume Name (Str255)
  626.                                                     r  = */
  627.                                                     
  628. #define kRsrcNotRemovedProtectedStr        "RSRC will NOT be removed (Type “^1”), from the file “^2”, because the resource is protected on the disk “^3”.  (inra#=^0)."
  629. #define    kRsrcNotRemovedProtectedID        5914    /*    p0 =    Rsrc Atom ID
  630.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  631.                                                     p2 =     File Spec ID
  632.                                                     p3 =    Volume Name (Str255)
  633.                                                     r  = */
  634.                                                     
  635. #define kRsrcNotRemovedLockedStr        "RSRC will NOT be removed (Type “^1”), because the file “^2” is Locked on the disk “^3”.  (inra#=^0)."
  636. #define    kRsrcNotRemovedLockedID            5915    /*    p0 =    Rsrc Atom ID
  637.                                                     p1 =    Rsrc Type/Rsrc ID (Str255)
  638.                                                     p2 =     File Spec ID
  639.                                                     p3 =    Volume Name (Str255)
  640.                                                     r  = */                                                
  641.                                                 
  642. /*==================================================================================================*/
  643. /*====================================== Font Progress Actions =====================================*/
  644. /*==================================================================================================*/
  645. #define    kFontProgressAction                6000
  646.  
  647. /*==========Font COPY action items================*/
  648.  
  649. #define kFontCopiedStr                    "FONT will be copied “^1” into “^2” on the disk “^3”.  (inff#=^0)."
  650. #define    kFontCopiedID                    6001    /*    p0 =    Font Atom ID
  651.                                                     p1 =    Family Name (Str255)
  652.                                                     p2 =     File Spec ID
  653.                                                     p3 =    Volume Name (Str255)
  654.                                                     r  = */
  655.                                                     
  656. #define kFontNotCopiedStr                "FONT will NOT be copied “^1” into the file “^2” on the disk “^3”.  (inff#=^0)."
  657. #define    kFontNotCopiedID                6002    /*    p0 =    Font Atom ID
  658.                                                     p1 =    Family Name (Str255)
  659.                                                     p2 =     File Spec ID
  660.                                                     p3 =    Volume Name (Str255)
  661.                                                     r  = */
  662.                                                     
  663. /*==========Font UPDATE action items================*/
  664.                                                 
  665.                                                 
  666. #define kFontUpdatedStr                    "FONT will be updated “^1” in the file “^2” on the disk “^3”.  (inff#=^0)."
  667. #define    kFontUpdatedID                    6003    /*    p0 =    Font Atom ID
  668.                                                     p1 =    Family Name (Str255)
  669.                                                     p2 =     File Spec ID
  670.                                                     p3 =    Volume Name (Str255)
  671.                                                     r  = */
  672.                                                 
  673. #define kFontNotUpdatedKeptExistStr        "FONT will NOT be updated “^1”, in the file “^2” on the disk “^3”, because the Installer is keeping the existing font.  (inff#=^0)."
  674. #define    kFontNotUpdatedKeptExistID        6004    /*    p0 =    Font Atom ID
  675.                                                     p1 =    Family Name (Str255)
  676.                                                     p2 =     File Spec ID
  677.                                                     p3 =    Volume Name (Str255)
  678.                                                     r  = */
  679.                                                     
  680. #define kFontNotUpdatedLockedStr        "FONT will NOT be updated “^1”, in the file “^2” on the disk “^3”, because the target file is locked.  (inff#=^0)."
  681. #define    kFontNotUpdatedLockedID            6005    /*    p0 =    Font Atom ID
  682.                                                     p1 =    Family Name (Str255)
  683.                                                     p2 =     File Spec ID
  684.                                                     p3 =    Volume Name (Str255)
  685.                                                     r  = */
  686.                                                     
  687. #define kFontNotUpdatedNotExistStr        "FONT will NOT be updated “^1”, in the file “^2” on the disk “^3”, because the target font did not exist.  (inff#=^0)."
  688. #define    kFontNotUpdatedNotExistID        6006    /*    p0 =    Font Atom ID
  689.                                                     p1 =    Family Name (Str255)
  690.                                                     p2 =     File Spec ID
  691.                                                     p3 =    Volume Name (Str255)
  692.                                                     r  = */
  693.                                                     
  694. #define kFontNotUpdatedProtectedStr        "FONT will NOT be updated “^1”, in the file “^2” on the disk “^3”, because a target font resource is protected.  (inff#=^0)."
  695. #define    kFontNotUpdatedProtectedID        6007    /*    p0 =    Font Atom ID
  696.                                                     p1 =    Family Name (Str255)
  697.                                                     p2 =     File Spec ID
  698.                                                     p3 =    Volume Name (Str255)
  699.                                                     r  = */
  700.                                                     
  701. /*==========Font REMOVE action items================*/
  702.                                                     
  703. #define kFontRemovedStr                    "FONT will be removed “^1”, from the file “^2” on the disk “^3”.  (inff#=^0)."
  704. #define    kFontRemovedID                    6008    /*    p0 =    Font Atom ID
  705.                                                     p1 =    Family Name (Str255)
  706.                                                     p2 =     File Spec ID
  707.                                                     p3 =    Volume Name (Str255)
  708.                                                     r  = */
  709.                                                     
  710. #define kFontNotRemovedStr                "FONT will NOT be removed “^1”, from the file “^2” on the disk “^3”.  (inff#=^0)."
  711. #define    kFontNotRemovedID                6009    /*    p0 =    Font Atom ID
  712.                                                     p1 =    Family Name (Str255)
  713.                                                     p2 =     File Spec ID
  714.                                                     p3 =    Volume Name (Str255)
  715.                                                     r  = */
  716.                                                     
  717. #define kFontNotRemovedNoExistStr        "FONT will NOT be removed “^1”, from the file “^2” on the disk “^3”, because it doesn't exist.  (inff#=^0)."
  718. #define    kFontNotRemovedNoExistID        6010    /*    p0 =    Font Atom ID
  719.                                                     p1 =    Family Name (Str255)
  720.                                                     p2 =     File Spec ID
  721.                                                     p3 =    Volume Name (Str255)
  722.                                                     r  = */
  723.                                                     
  724. #define kFontNotRemovedLockedStr        "FONT will NOT be removed “^1”, from the file “^2” on the disk “^3”, because the target file is locked.  (inff#=^0)."
  725. #define    kFontNotRemovedLockedID            6011    /*    p0 =    Font Atom ID
  726.                                                     p1 =    Family Name (Str255)
  727.                                                     p2 =     File Spec ID
  728.                                                     p3 =    Volume Name (Str255)
  729.                                                     r  = */
  730.                                                     
  731. #define kFontNotRemovedProtectedStr        "FONT will NOT be removed “^1”, from the file “^2” on the disk “^3”, because a target font resource is protected.  (inff#=^0)."
  732. #define    kFontNotRemovedProtectedID        6012    /*    p0 =    Font Atom ID
  733.                                                     p1 =    Family Name (Str255)
  734.                                                     p2 =     File Spec ID
  735.                                                     p3 =    Volume Name (Str255)
  736.                                                     r  = */
  737.                                                     
  738.  
  739. /*==================================================================================================*/
  740. /*===================================== Folder Progress Actions ====================================*/
  741. /*==================================================================================================*/
  742. #define    kFolderProgressAction            6100
  743.  
  744. #define kFolderCopiedStr                "FOLDER will be copied “^1” to the disk “^2”.  (Folder Atom ID=^0)."
  745. #define    kFolderCopiedID                    6101    /*    p0 =    Folder Atom ID
  746.                                                     p1 =    Folder Name (Str255)
  747.                                                     p2 =     Volume Name (Str255)
  748.                                                     p3 =    
  749.                                                     r  = */
  750.                                                     
  751. /*==================================================================================================*/
  752. /*===================================== ResMerge Progress Actions ==================================*/
  753. /*==================================================================================================*/
  754. #define    kResMergeProgressAction        6200
  755.  
  756. #define kResMergeCopiedStr                "RESOURCES will be merged into the file “^1” on the disk “^2”.  (ResMerge Atom ID=^0)."
  757. #define    kResMergeCopiedID                6201    /*    p0 =    ResMerge Atom ID
  758.                                                     p1 =    File Name (Str255)
  759.                                                     p2 =     Volume Name (Str255)
  760.                                                     p3 =    
  761.                                                     r  = */
  762.                                                     
  763.                                                     
  764.  
  765. /*==================================================================================================*/
  766. /*===================================== HandleAction Function ======================================*/
  767. /*==================================================================================================*/
  768.  
  769. #ifndef Rez
  770.  
  771. #ifndef __Types__
  772. #include "Types.h"
  773. #endif
  774.  
  775. #ifndef __CallbackDispatcherHeader__
  776. #include "CallbackDispatcherHeader.h"
  777. #endif
  778.  
  779. typedef struct{
  780.     Handle                fStaticDataHdl;
  781.     ProcPtr                fCallBackProcPtr;
  782.     short                fTargetVRefNum;
  783.     long                fTargetFolderDirID;
  784.     short                fSystemVRefNum;
  785.     long                fSystemBlessedDirID;
  786.     short                fActionClassID;
  787.     short                fActionIdentifier;
  788.     void*                fParam0;
  789.     void*                fParam1;
  790.     void*                fParam2;
  791.     void*                fParam3;    
  792.     void*                fResultPtr;
  793. } ActionHandlerPB, *ActionHandlerPBPtr;
  794.  
  795. OSErr HandleAction( ActionHandlerPBPtr );
  796.  
  797.  
  798.  
  799. /* This is the interface for the call back routine to send actions from code resources.
  800.     You can NOT send actions using RegisterScriptAction() while inside an Action Handler code resource. */
  801. void RegisterScriptAction(     CallBackProcPtr    pCallBackProcPtr,
  802.                             short            actionClassID,
  803.                             short            actionIdentifier,
  804.                             void*            param0,
  805.                             void*            param1,
  806.                             void*            param2,
  807.                             void*            param3,
  808.                             void*            resultPtr  );
  809.  
  810. #endif
  811.  
  812. #endif